# library=module=package=库或者包
# import pylab as plt
# import matplotlib.pylab as plt
import matplotlib.pylab as plt
mySamples=[]#x坐标
myLinear=[]#y坐标
myQuadratic=[]##y坐标
myCubic=[]##y坐标
myExponential=[]

for i in range(0,30):
    mySamples.append(i)
    myLinear.append(i)
    myQuadratic.append(i**2)
    myCubic.append(i**3)
    myExponential.append(1.5**i)
    plt.figure("Linear")
    plt.xlabel("sample points")
    plt.ylabel("liner function")
    plt.plot(mySamples, myLinear)
    plt.figure("Quadratic")
    plt.plot(mySamples, myQuadratic)
    plt.figure("Cubic")
    plt.plot(mySamples, myCubic)
    plt.figure("Expo")
    plt.plot(mySamples, myExponential)
    plt.figure("Quadratic")
    plt.ylabel("quadratic function")
    plt.show()

    # plt.figure(arg)